#include <stdio.h>

#define N 10

int main()
{
    int i, temp;

    int arr[N] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10};

    for (i = 0; i < N / 2; i++)
    {
        temp = arr[i];
        arr[i] = arr[N - 1 - i];
        arr[N - 1 - i] = temp;
    }

    for (i = 0; i < N; i++)
    {
        printf("arr[%d] = %d\n", i, arr[i]);
    }
    printf("\n");
    return 0;
}